package cn.kgc.service;

/*
 *@author zhangtao
 *@Date 2023/4/27
 */

import cn.kgc.bean.pojo.EpDangerous;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

public interface EpDangerousService {
    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患录入(新增隐患)
     */
    boolean addEpDangerous(EpDangerous epDangerous);

    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(分页展示隐患)
     */
    List<EpDangerous> getAllEpDangerousInfo();

    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(删除隐患)
     */
    boolean delEpDangerousInfoById(Integer id);


    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(修改隐患)
     */
    boolean updateEpDangerousInfo(EpDangerous epDangerous);


    /*
     *@author zhangtao
     *@Date 2023/4/27
     * 隐患管理(模糊查询隐患)
     */
    List<EpDangerous> getSomeDangerousInfo(String department, Integer riskLevel, String fixStaff, String checkStaff,String startline,String endline);

    List<EpDangerous> getInfoByTime (String startline, String endline);
    List<EpDangerous> getNum();
    List<EpDangerous> getEpDangAll(String staffId);
}
